package com.podmanager.RssFeed;

/*
 * Place-holder for the RSS episodes (aka post).  The posts are the <item> tags, 
 * but also holds subscription information.
 */
public class RSSPost {
	// members for subscription
	private String subscriptionTitle;
	private String subscriptionLink;
	private String subscriptionDescription;
	private String subscriptionLanguage;
	private String subscriptionPubDate;
	private String subscriptionImageUrl;
	private String subscriptionLastBuildDate;
	// update date,  image URL
	
	// members for episodes 
	private String episodeTitle;
	private String episodeThumbnail;
	private String episodeThumbnailUrl;
	private String episodeUrl;
	private String episodeDescription;
	private String episodePubDate;
	private String episodeAuthor;
	private String episodeCopyright;
	private String episodeLanguage;
	private String episodeGuid;
	private String episodeLength;
	private String episodeFileType;
	


	// used for reference during XML parsing
	static final String TITLE = "title";
	static final String DESCRIPTION = "description";
	static final String SUBSCRIPTION = "channel";
	static final String LANGUAGE = "language";
	static final String COPYRIGHT = "copyright";
	static final String LINK = "link";
	static final String AUTHOR = "author";
	static final String ITEM = "item";
	static final String PUB_DATE = "pubDate";
	static final String GUID = "guid";
	static final String LASTBUILDDATE = "lastBuildDate";
	static final String IMAGE = "image";
	static final String ENCLOSURE = "enclosure";
	
	// nested subscription image tags
	static final String SUB_IMAGE_URL = "url";
	static final String SUB_IMAGE_TITLE = "title";
	static final String SUB_IMAGE_LINK = "link";
	static final String SUB_IMAGE_WIDTH = "width";
	static final String SUB_IMAGE_HEIGHT = "height";
	
	// nested enclosure tags (this is found in some item tags)
	static final String ENCLOSURE_URL = "url";
	static final String ENCLOSURE_LENGTH = "length";
	static final String ENCLOSURE_TYPE = "type";
	
	public RSSPost() {
		
	}

	public String getTitle() {
		return episodeTitle;
	}

	public void setTitle(String episodeTitle) {
		this.episodeTitle = episodeTitle;
	}

	public String getThumbnail() {
		return episodeThumbnail;
	}

	public void setThumbnail(String episodeThumbnail) {
		this.episodeThumbnail = episodeThumbnail;
	}
	
	public String getThumbnailUrl() {
		return episodeThumbnailUrl;
	}

	public void setThumbnailUrl(String episodeThumbnailUrl) {
		this.episodeThumbnailUrl = episodeThumbnailUrl;
	}

	public String getUrl() {
		return episodeUrl;
	}

	public void setUrl(String episodeUrl) {
		this.episodeUrl = episodeUrl;
	}

	public void setDescription(String episodeDescription) {
		this.episodeDescription = episodeDescription;
	}

	public String getDescription() {
		return episodeDescription;
	}

	public void setPubDate(String episodePubDate) {
		this.episodePubDate = episodePubDate;
	}

	public String getPubDate() {
		return episodePubDate;
	}
	
	public String getSubscriptionTitle() {				
		return subscriptionTitle;
	}

	public void setSubscriptionTitle(String subscriptionTitle) {
		this.subscriptionTitle = subscriptionTitle;
	}

	public String getSubscriptionLink() {
		return subscriptionLink;
	}

	public void setSubscriptionLink(String subscriptionLink) {
		this.subscriptionLink = subscriptionLink;
	}

	public String getSubscriptionDescription() {
		return subscriptionDescription;
	}

	public void setSubscriptionDescription(String subscriptionDescription) {
		this.subscriptionDescription = subscriptionDescription;
	}

	public String getSubscriptionLanguage() {
		return subscriptionLanguage;
	}

	public void setSubscriptionLanguage(String subscriptionLanguage) {
		this.subscriptionLanguage = subscriptionLanguage;
	}
	
	public String getSubscriptionPubDate() {
		return subscriptionPubDate;
	}

	public void setSubscriptionPubDate(String subscriptionPubDate) {
		this.subscriptionPubDate = subscriptionPubDate;
	}

	public String getSubscriptionImageUrl() {
		return subscriptionImageUrl;
	}

	public void setSubscriptionImageUrl(String subscriptionImageUrl) {
		this.subscriptionImageUrl = subscriptionImageUrl;
	}

	public String getSubscriptionLastBuildDate() {
		return subscriptionLastBuildDate;
	}

	public void setSubscriptionLastBuildDate(String subscriptionLastBuildDate) {
		this.subscriptionLastBuildDate = subscriptionLastBuildDate;
	}

	public String getEpisodeAuthor() {
		return episodeAuthor;
	}

	public void setEpisodeAuthor(String episodeAuthor) {
		this.episodeAuthor = episodeAuthor;
	}

	public String getEpisodeCopyright() {
		return episodeCopyright;
	}

	public void setEpisodeCopyright(String episodeCopyright) {
		this.episodeCopyright = episodeCopyright;
	}

	public String getEpisodeLanguage() {
		return episodeLanguage;
	}

	public void setEpisodeLanguage(String episodeLanguage) {
		this.episodeLanguage = episodeLanguage;
	}

	public String getEpisodeGuid() {
		return episodeGuid;
	}

	public void setEpisodeGuid(String episodeGuid) {
		this.episodeGuid = episodeGuid;
	}
	
	public String getEpisodeLength() {
		return episodeLength;
	}

	public void setEpisodeLength(String episodeLength) {
		this.episodeLength = episodeLength;
	}

	public String getEpisodeFileType() {
		return episodeFileType;
	}

	public void setEpisodeFileType(String episodeFileType) {
		this.episodeFileType = episodeFileType;
	}

	@Override
	public String toString() {
		return "RSSPost [subscriptionTitle=" + subscriptionTitle + ", subscriptionLink="
				+ subscriptionLink + ", subscriptionDescription=" + subscriptionDescription
				+ ", subscriptionLanguage=" + subscriptionLanguage + ", episodeTitle=" + episodeTitle
				+ ", episodeThumbnail=" + episodeThumbnail + ", episodeUrl=" + episodeUrl
				+ ", episodeDescription=" + episodeDescription + ", episodePubDate=" + episodePubDate + "]";
	}

	
}
